/*******************************************OVERVIEW****************************************************************
 
"Reassessing the Link between Revolutionary Threats and Democratization" 
 
Replication File
 
Table G1
 
  
********************************************************************************************************************/

clear
set more off
#delimit ;


/*Set Directory -- You will need to adjust this line of code accordingly */; 

cd "/Users/YourFiles/Replication/";


/*Create Log File*/;

log using "Table G1", replace text;


/*Load Data File*/;

use "data_G1.dta";

egen poor=rowmean(poor_1828 poor_1829 poor_1830);

gen poor_cap=poor/population1831;

ttest road_dissevenoaks_const_km, by(agg_type1);

ttest constriots10, by(agg_type1);

ttest reform_1830, by(agg_type1);

ttest thresh, by(agg_type1);

ttest poor_cap, by(agg_type1);

ttest cum_labour_riots, by(agg_type1);

ttest ln_garr_min_dis, by(agg_type1);

ttest Dpolice1, by(agg_type1);

log c;
